require('dotenv').config();

module.exports = {
  secret: process.env.JWT_SECRET || 'your-secret-key',
  expiresIn: process.env.JWT_EXPIRES_IN || '24h',
  
  // 管理后台token配置
  admin: {
    secret: process.env.ADMIN_JWT_SECRET || 'admin-secret-key',
    expiresIn: process.env.ADMIN_JWT_EXPIRES_IN || '12h'
  },
  
  // 小程序token配置
  miniapp: {
    secret: process.env.MINIAPP_JWT_SECRET || 'miniapp-secret-key',
    expiresIn: process.env.MINIAPP_JWT_EXPIRES_IN || '7d'
  }
}; 